<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$title}内容列表</h2>
	</div>

	<!-- 数据列表 -->
	<div class="data-table table-striped">
		<empty name="custom_adminlist">
			<!-- 数据列表 -->
			<table cellpadding="0" cellspacing="1">
				<thead>
				<tr>
					<th>
						<input class="check-all" type="checkbox">序号
					</th>
					<volist name="listKey" id="vo">
						<th>{$vo}</th>
					</volist>
				</tr>
				</thead>
				<tbody>
				<volist name="_list" id="lv" key="vo">
					<tr>
						<td><input class="ids" type="checkbox" value="{$lv.id}" name="id[]">{$lv.id}</td>
						<volist name="listKey" id="lk">
							<td>{$lv.$key}</td>
						</volist>
					</tr>
				</volist>
				</tbody>
			</table>
			<else/>
			<present name="custom_adminlist">
				{$custom_adminlist}
			</present>
		</empty>
	</div>
	<!-- 分页 -->
	<div class="page">
		{$_page}
	</div>
</block>
<block name="script">
	<script type="text/javascript">
		$(function () {
			//全选节点
			$('.check-all').on('change', function () {
				$('.ids').prop('checked', this.checked);
			});
		})
	</script>
</block>
